export default {
  changeCity (state, city) {
    state.city = city
    try {
      if (localStorage.city) {
        localStorage.city = city
      }
    } catch (e) {
      alert('本地储存写入错误，若为safari浏览器请关闭隐身模式浏览。')
    }
  }
}
